package com.his.controller;

import com.his.bean.DzmHisDictionary;
import com.his.service.DzmHisDictionaryService;
import com.his.utils.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dzmhisdictionary")
public class DzmHisDictionaryController {

    @Autowired
    DzmHisDictionaryService dzmHisDictionaryService;

    /**
     * 字典级别查询
     * @return
     */
    @GetMapping("jibielist")
    public ResponseResult jieBieList(){
        return new ResponseResult(200,"成功",dzmHisDictionaryService.jieBieList());
    }

    /**
     * 字典职务查询
     */
    @GetMapping("zhiwulist")
    public  ResponseResult zhiWuList(){
        return new ResponseResult(200,"成功",dzmHisDictionaryService.zhiWuList());
    }
}
